const childFn = (arr: any[]) => {
  for (const item of arr) {
    if (item.children instanceof Array) {
      item.isShow = false
      childFn(item.children)
    }
  }
}

export default childFn